<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author: LJQ <liujiqi@etrol.com> 
// +----------------------------------------------------------------------

namespace app\common\controller;
use think\Controller;

class Api  extends Controller {

	public function _initialize() {
		/* 读取数据库中的配置 */
		$config = cache('db_config_data');
		if (!$config) {
			$config = model('Config')->lists();
			cache('db_config_data', $config);
		}
		config($config);
	}
}
